package ${pkgName};

<#list import_list as imports>
import ${imports};
</#list>
import com.fire.code.user.entity.UserEntity;
import java.util.List;
import java.util.Map;
import com.fire.common.entity.FireMsg;


/**
 * @author close
 * @desc 
 */

public interface ${className} {


	/**
	 * @Description: 获得grid所需的list
	 * @Title: list
	 * @author: close
	 * @param ${modebeanClassName} entity
	 * @throws Exception
	 * @return List<${modebeanClassName}>
	 */
	public List<${modebeanClassName}> list(${modebeanClassName} entity) throws Exception ;
	
	/**
	 * @Description: 获得grid所需的list
	 * @Title: listWithPage
	 * @author: close
	 * @param ${modebeanClassName} entity
	 * @throws Exception
	 * @return Page
	 */
	public Map<String, Object> listWithPage(int page,int rows,${modebeanClassName} entity) throws Exception ;
	
	/**
	 * @Description: 修改
	 * @Title: search
	 * @author: close
	 * @param @param id
	 * @throws Exception
	 * @return FireMsg<RoleEntity>
	 */
	public ${modebeanClassName} search(String ${table.pks[0].column_name}) throws Exception ;
	
	/**
	 * @Description: 添加或修改通用方法
	 * @Title: save
	 * @author: close
	 * @param map
	 * @param optName
	 * @throws Exception
	 * @return FireMsg<${modebeanClassName}>
	 */
	public FireMsg<${modebeanClassName}> save(${modebeanClassName} entity,String optName,UserEntity user) throws Exception;
	
	/**
	 * @Description: 删除
	 * @Title: delete
	 * @author: close
	 * @param id
	 * @throws Exception
	 * @return FireMsg<${modebeanClassName}>
	 */
	public FireMsg<${modebeanClassName}> delete(List<String> ${table.pks[0].column_name}) throws Exception;
	
	
}